* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	background-color: #f9f9f9;
}

body {
    font-family: Microsoft YaHei;
    color: #333;
    background-color: #f5f5f5;
}

ul, dl {
	list-style: none;
}

#app {
	position: relative;
	min-width: 1200px;
	height: 100%;
}

.mt-5 {
    margin-top: 5px;
}
.mt-10 {
    margin-top: 10px;
}
.mt-20 {
    margin-top: 20px;
}
.mr-5 {
    margin-right: 5px;
}
.mr-10 {
    margin-right: 10px;
}
.mr-20 {
    margin-right: 20px;
}
.mb-5 {
    margin-bottom: 5px;
}
.mb-10 {
    margin-bottom: 10px;
}
.mb-20 {
    margin-bottom: 20px;
}
.ml-5 {
    margin-left: 5px;
}
.ml-10 {
    margin-left: 10px;
}
.ml-20 {
    margin-left: 20px;
}

.pt-5 {
    padding-top: 5px;
}
.pt-10 {
    padding-top: 10px;
}
.pt-20 {
    padding-top: 20px;
}
.pr-5 {
    padding-right: 5px;
}
.pr-10 {
    padding-right: 10px;
}
.pr-20 {
    padding-right: 20px;
}
.pb-5 {
    padding-bottom: 5px;
}
.pb-10 {
    padding-bottom: 10px;
}
.pb-20 {
    padding-bottom: 20px;
}
.pl-5 {
    padding-left: 5px;
}
.pl-10 {
    padding-left: 10px;
}
.pl-20 {
    padding-left: 20px;
}

.ui-flex {
    display: flex;
    &-center {
        align-items: center;
    }
    &-between {
        justify-content: space-between;
    }
    &-full {
        flex: 1;
        min-width: 0;
    }
    &-shrink {
        flex-shrink: 0;
    }
}

/* 超出隐藏 */
.ui-ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.ui-ellipsis2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* 字体颜色 */
.ui-text-primary {
    color: #2d8cf0;
}
.ui-text-error {
    color: #ed4014;
}
.ui-text-gray {
    color: #868686;
}
.ui-text-disabled {
    color: #c0c2c8;
}
.ui-text-success {
    color: #34a37f;
}

/* 按钮组 */
.ui-btns {
    font-size: 0;
    .ivu-btn + .ivu-btn {
        margin-left: 10px;
    }
}

.ui-layout {
	// position: absolute;
	// top: 0;
	// right: 0;
	// bottom: 0;
	// left: 0;
	padding-top: 51px;
	padding-left: 130px;
	height: 100%;
	&-header {
		position: absolute;
		top: 0;
		left: 130px;
		right: 0;
        display: flex;
		height: 51px;
		text-align: right;
		border-bottom: 1px solid #ebebeb;
		background-color: #fff;
		z-index: 1004;
        &--menu {
            flex: 1;
            display: flex;
            justify-content: end;
            min-width: 1px;
        }
		&__item {
			padding: 11px 20px;
			height: 50px;
			line-height: 28px;
			color: #969696;
			border-left: 1px solid #ebebeb;
			vertical-align: top;
            cursor: pointer;
		}
	}
	&-sidebar {
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		width: 130px;
		color: #fff;
		background-color: #363636;
		overflow: hidden;
        overflow-y: auto;
		z-index: 1005;
	}
	&-body {
		display: flex;
        padding: 10px;
		height: 100%;
		flex-direction: column;
        overflow: hidden;
        overflow-y: auto;
	}
	&-content {
	    flex: 1;
	    padding: 20px;
		border: 1px solid #eee;
		background-color: #fff;
	}
	&-sideslip-menu {
        position: absolute;
        top: 51px;
        bottom: 0;
        left: 0;
        width: 130px;
    }
    &-submenu {
        position: absolute;
        top: 51px;
        left: 130px;
        bottom: 0;
        width: 130px;
        border-right: 1px solid #ebebeb;
        background-color: #fff;
        transition: width .3s;
        overflow: hidden;
        overflow-y: auto;
        z-index: 1003;
    }
    &-footer {
        position: fixed;
        left: 130px;
        bottom: 0;
        right: 0;
        padding: 20px;
        height: 72px;
        box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        z-index: 8;
    }
    &-submenu-open {
        padding-left: 260px;
    }
    &-submenu-open ~ &-footer {
        left: 260px;
    }
}

.ui-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    padding: 10px;
	width: 130px;
	height: 50px;
	img {
		max-width: 100%;
		max-height: 100%;
	}
}

.ui-menu {
    display: block;
    margin: 0;
    padding: 0;
    outline: 0;
    list-style: none;
    color: #fff;
    font-size: 14px;
    z-index: 900;
    &-item {
        cursor: pointer;
        outline: 0;
        list-style: none;
        font-size: 14px;
        z-index: 1;
        cursor: pointer;
        transition: all .2s ease-in-out;
        &-box {
            display: block;
            padding: 14px 10px 14px 30px;
        }
        .ivu-icon {
            font-size: 16px;
            width: 16px;
            text-align: center;
        }
        .layout-text {
            margin-left: 10px;
        }
    }
    &-item:hover {
        background-color: #333;
    }
    &-item-active {
        .ui-menu-item-box {
            padding-left: 28px;
            border-left: 2px solid #1ba2fc;
            background-color: #19222e;
        }
        .ui-layout-submenu {
            display: block;
        }
    }
}

.ui-submenu {
    list-style: none;
    color: #000;
    cursor: default;
    &-item {
        display: block;
        padding: 10px 10px 10px 30px;
        line-height: 30px;
        font-size: 12px;
        cursor: pointer;
    }
    &-item:hover {
        color: #1ba2fc;
    }
    &-item-active {
        color: #1ba2fc;
        background-color: #d1ecfe;
    }
    &-title {
        padding: 10px 10px 10px 30px;
        line-height: 30px;
        font-size: 12px;
        color: #a8a8a8;
    }
    &-divider {
        margin-left: 10px;
        width: 110px;
        height: 1px;
        background-color: #e1e2e3;
    }
    &-item-disabled {
        color: #bbb;
        background-color: #fff;
    }
    &-item-disabled:hover {
        color: #bbb;
    }
}

// 弹窗
.ui-mid-pop {
    display: flex;
    align-items: center;
    justify-content: center;
    .ivu-modal{
        top: 0;
    }
}
.ui-pop {
    margin: -16px;
    &-cell {
        padding: 10px;
        border-bottom: 1px solid #eeeeee;
    }
    &-cell:last-child {
        border-bottom: 0;
    }
    .dot-line {
        position: relative;
        padding-left: 15px;
        line-height: 18px;
        color: #979797;
    }
    .dot-line:before {
        position: absolute;
        top: 7px;
        left: 0;
        display: block;
        content: ' ';
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: #1ba2fc;
    }
    .ui-pop-form {
        padding-top: 15px;
    }
}

.base-table-wrap {
    position: relative;
    overflow: hidden;
}
.base-table {
    width: inherit;
    height: 100%;
    max-width: 100%;
    color: #fff;
    background-color: #282828;
    box-sizing: border-box;
    overflow: hidden;
    overflow-x: auto;
}
.base-table-hide {
    opacity: 0;
}
/* .base-table-header, .base-table-body {
    overflow: hidden;
} */
.base-table table {
    table-layout: fixed;
    overflow-x: hidden;
}
.base-table th, .base-table td {
    min-width: 0;
    height: 35px;
    box-sizing: border-box;
    text-align: left;
    text-overflow: ellipsis;
    vertical-align: middle;
    border-left: 1px solid #363636;
    border-bottom: 1px solid #363636;
}
.base-table th:first-child, .base-table td:first-child {
    border-left: 0;
}
.base-table th {
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    background-color: #363636;
}
.base-table-cell {
    padding: 5px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-all;
    box-sizing: border-box;
}
.base-table-cell-full {
    padding: 0;
}